package org.jsola.hr.dao;

import org.apache.ibatis.annotations.Param;
import org.jsola.hr.entity.EmpSocRelatedDO;
import org.jsola.orm.mapper.IJsolaMapper;
import org.springframework.stereotype.Repository;


/**
 * 员工社保相关信息表
 *
 * @author zhr
 */
@Repository("hrEmpSocRelatedDAO")
public interface IEmpSocRelatedDAO extends IJsolaMapper<EmpSocRelatedDO> {

    /**
     * 根据类型置空对应的计划减员时间
     *
     * @param empSocRelatedId 员工社保信息实体Id
     * @param type            类型
     */
    void clearedPlanDecreaseDate(@Param("empSocRelatedId") String empSocRelatedId,
                                 @Param("type") Integer type);

    /**
     * 根据类型置空对应的计划增员时间
     *
     * @param empSocRelatedId 员工社保信息实体Id
     * @param type            类型
     */
    void clearedPlanIncreaseDate(@Param("empSocRelatedId") String empSocRelatedId,
                                 @Param("type") Integer type);
}

